<include file="Common/header" />
<!-- 导航栏 -->
{$bread_crumb}
<!-- 导航栏 -->
<div class="page-container">
    <form action="{:U(CONTROLLER_NAME.'/update')}" method="post" class="form form-horizontal" enctype="multipart/form-data" onsubmit="return submit_before()">
        <input type="hidden" name="id" value="{$data.id}">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">是否开启：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="check-box">
                    <input type="checkbox" name="is_open" <if condition="$data['is_open'] eq 1" >checked</if>>
                    <label for="checkbox-1">&nbsp;</label>
                </div>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">是否默认：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="check-box">
                    <input type="checkbox" name="is_default" <if condition="$data['is_default'] eq 1" >checked</if>>
                    <label for="checkbox-1">&nbsp;</label>
                </div>
            </div>
        </div>
        <if condition="$data['key'] eq 'Kdniao'">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>eBusinessID：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" style="width:30%" placeholder="eBusinessID" id="eBusinessID" name="eBusinessID" value="{$data['conf']['eBusinessID']}" >
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>appKey：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" style="width:40%" placeholder="appKey" id="appKey" name="appKey" value="{$data['conf']['appKey']}" >
            </div>
        </div>
        </if>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交审核</button>
                <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</div>
<include file="Common/footer" />
<script type="text/javascript">
/*checkbox*/
$(function(){
    $('.skin-minimal input').iCheck({
        checkboxClass: 'icheckbox-blue',
        radioClass: 'iradio-blue',
        increaseArea: '20%'
    });
});
/*表单提交之前的操作，主要针对一些数据类型*/
function submit_before() {
    $('#e_text').val(UE.getEditor('editor').getContent());
}


</script> 